
import React, { memo } from 'react';
import sty from './sty.module.css';
import PropTypes from 'prop-types';
import { message } from 'antd';
const HeaderLine = (props) => {
  const { titleSlot, rightSlot } = props;
  return <div className={sty.headerLineWrap}>
    <div className={sty.hotArtist}>{titleSlot}</div>
    <span onClick={() => message.warning('更多')} className='show-all  no-link'>{rightSlot}</span>
  </div>
}

HeaderLine.propTypes = {
  titleSlot: PropTypes.any,
  rightSlot: PropTypes.any

}
export default memo(HeaderLine)